<include file="Public:header"/>

<div class="data_list">
	<table>
		<tr>
			<th width="30"><input type="checkbox" onclick="$.checkbox(this,'td')"></th>
			<th width="60">用户类型</th>
			<th width="60">类型</th>
			<th>版本名称</th>
			<th>内部版本号</th>
			<th>更新日期</th>
			<th width="80">强制更新</th>
			<th width="30">启用</th>
			<th width="100">操作</th>
		</tr>
		<volist name="list" id="rs">
		<tr>
			<td>
				<input type="checkbox" name="ids[]" value="{$rs['id']}">
				<input type="hidden" name="id[{$rs['id']}]" value="{$rs['id']}">
			</td>
			<td>
				<eq name="rs.user_type" value="teacher">老师端</eq>
				<eq name="rs.user_type" value="student">学生端</eq>
			</td>
			<td>
				<eq name="rs.client_type" value="android">Android</eq>
				<eq name="rs.client_type" value="ios">iOS</eq>
			</td>
			<td>{$rs['version_name']}</td>
			<td>{$rs['version_code']}</td>
			<td>{$rs['update_date']}</td>
			<td>
				<input type="checkbox" name="is_force[{$rs['id']}]" value="1" <eq name="rs.is_force" value="1">checked</eq> />
			</td>
			<td>
				<input type="checkbox" name="status[{$rs['id']}]" value="1" <eq name="rs.status" value="1">checked</eq> />
			</td>
			<td>
				<a href="{:URL('edit',array('id'=>$rs['id'],'client_type'=>$rs['client_type']))}" title="修改">
					<img src="../Public/images/ico_edit.jpg">
				</a>
				<a href="{:URL('delete','id='.$rs['id'])}" title="删除" onclick="return $(this).delConfirm();">
					<img src="../Public/images/ico_del.jpg">
				</a>
			</td>
		</tr>
		</volist>
	</table>
</div>

<div class="page">{$page}</div>
<div class="batch_opt">
	<input type="button" value="批量修改" class="btn1" onclick="addForm('table')">
	<input type="button" value="添加Android老师版本" onclick="jumpurl('{:URL('add','client_type=android&user_type=teacher')}')" class="btn2">
	<input type="button" value="添加iOS老师版本" onclick="jumpurl('{:URL('add','client_type=ios&user_type=teacher')}')" class="btn2">
	<input type="button" value="添加Android学生版本" onclick="jumpurl('{:URL('add','client_type=android&user_type=student')}')" class="btn3">
	<input type="button" value="添加iOS学生版本" onclick="jumpurl('{:URL('add','client_type=ios&user_type=student')}')" class="btn3">
</div>

<include file="Public:footer"/>